package cn.itcast.GsyVideoPlayer;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Build;

import android.os.Bundle;

import android.widget.Button;

import java.util.Scanner;

import cn.itcast.GsyVideoPlayer.video.LiveVideo;


public class MainActivity extends AppCompatActivity {

    private Button btn_gsy_video ,btn_exo_video,btn_view_video,btn_surfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {


        super.onCreate(savedInstanceState);


        setContentView(R.layout.activity_main);


        btn_gsy_video=findViewById(R.id.btn_gsy_video);


        btn_exo_video=findViewById(R.id.btn_exo_video);


        btn_view_video=findViewById(R.id.btn_view_video);


        btn_surfaceView=findViewById(R.id.btn_surfaceView);


        btn_gsy_video.setOnClickListener(view -> {

            Intent intent=new Intent(MainActivity.this,GSYVideoPlayerActivity.class);

            startActivity(intent);

        });


        btn_exo_video.setOnClickListener(view -> {

             Intent intent=new Intent(MainActivity.this,ExoPlayerActivity.class);

             startActivity(intent);

        });

        btn_view_video.setOnClickListener(view -> {

            Intent intent=new Intent(MainActivity.this,VideoViewActivity.class);

            startActivity(intent);

        });


        btn_surfaceView.setOnClickListener(view -> {


            Intent intent=new Intent(MainActivity.this,SurfaceViewActivity.class);


            startActivity(intent);


        });


    }


 }



 //下班，明天见，星期二。（在这里打又见面了）->(又见面了)